<template>
	<view class="navBarClass headPadding">
		<u-navbar :border="false" :placeholder="true">
			<view slot="left">
				<u-icon name="list" size="30" @click="openPopUpBluetooth()"></u-icon>
			</view>

			<view slot="center" class="defStyle">
				<view class="fontTit">{{ domain.equipmentName }}</view>
				<view class="fontSub">{{ domain.deviceId }}</view>
			</view>
			<view slot="right">
				<u-icon name="more-dot-fill" size="30" @click="openBlue()"></u-icon>
			</view>
		</u-navbar>
		<view>
			<u-popup :round="10" :show="showBLE" mode="center" @close="close">
				<view class="allSty">
					<popUpBluetooth></popUpBluetooth>
				</view>
			</u-popup>
		</view>
	</view>
</template>
<script>
	import popUpBluetooth from '@/pagesA/router/popUpBluetooth.vue';
	export default {
		components: {
			popUpBluetooth
		},
		data() {
			return {
				showBLE: false,
				windowHeight: 580,
				aryList: [{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放adsf大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打asd放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打dafds放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
					{
						equipmentName: '打放大',
						deviceId: '2D:DA:DA:VE:CD:CD:ER',
						xxx: 'vodik'
					},
				]
			}
		},
		created() {

		},
		methods: {
			openPopUpBluetooth() {
				const that = this
				that.showBLE = true
			},
			close() {
				this.showBLE = true
			},
			openBlue() {
				uni.navigateTo({
					url: '/pagesA/router/bluetooth'
				})
			}
		}
	}
</script>

<style lang="scss">
	.navBarClass {
		background: #00BFFF;
		position: fixed;
		width: 100%;
	}

	.defStyle {
		width: 100%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.allSty {
		width: 300px;
	}
</style>